#include <iostream>
using namespace std;

class Complex{
public:
    Complex(double r=0.0, double i=0.0):real(r),imag(i){}
    void display() const{
        cout<<"("<<real<<","<<imag<<")"<<endl;
    }	
    Complex operator+(const Complex &c2)const;
    Complex operator-(const Complex &c2)const;
    Complex operator++();
    Complex operator++(int);
private:
    int real, imag;
};
Complex Complex::operator+(const Complex &c2)const{return Complex (real+c2.real,imag+c2.imag);}
Complex Complex::operator-(const Complex &c2)const{return Complex(real-c2.real,imag-c2.imag);}
Complex Complex::operator++(){real++;imag++;return *this;}
Complex Complex::operator++(int){
	Complex old=*this;
	++(*this);
	return old;
	}

int main() {
    const Complex a(3,4),b(1,3);
    cout<<"a+b=";(a+b).display();
    cout<<"a-b=";(b-a).display();

    Complex c1(5,4);
    cout<<"c1.display()=";c1.display();
    cout<<"(c1++).display()=";(c1++).display();
    cout<<"(++c1).display()=";(++c1).display();
    return 0;
}



